package package01.pojo;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @Description javabean  Chat序列化
* @Return
* @Author zzj
* @Date 2020/7/21 18:18
**/
public class Chat implements Serializable {
//    id varchar2(100) primary key, -- 主键
//    nickname varchar2(10), -- 发送信息的用户
//    message varchar2(1000), -- 发送的内容
//    create_time timestamp, -- 发送的时间
//    state char(1)
    private static final long serialVersionUID = -1;

    private String id;
    private String nickname;
    private String message;
    private Timestamp createTime;
    private String state;

    public Chat(String id, String nickname, String message, Timestamp createTime, String state) {
        this.id = id;
        this.nickname = nickname;
        this.message = message;
        this.createTime = createTime;
        this.state = state;
    }

    public Chat() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Chat{" +
                "id='" + id + '\'' +
                ", nickname='" + nickname + '\'' +
                ", message='" + message + '\'' +
                ", createTime=" + createTime +
                ", state='" + state + '\'' +
                '}';
    }
}
